<?php

defined( 'ABSPATH' ) || exit;
?>

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php
	if(is_home()){
		echo '<title>';echo bloginfo('name');echo '</title>';
		echo '<meta name="keywords" content="赫思,深圳赫思医疗美容医院,整形,整形医院,美容,医美,隆胸,隆鼻,割双眼皮,私密,深圳最好的整形美容医院,深圳知名整形医院,hers,赫思名品医疗,东莞赫思,佛山赫思,珠海赫思,惠州赫思" >';
		echo '<meta name="description" content="赫思医疗美容目前在深圳、东莞、佛山开设直营医院，是以高端医疗美容整形为基础的大湾区明星名模名媛打造基地。赫思汇聚了全国最顶级的美容医生，以高超的技术、优美的环境和热情的服务为基础，以最前沿的、高端的审美为追求，为求美者量身定制最符合自身的医疗美容服务" >';
	}elseif(is_category()){
		$category_ = get_category($cat);
		echo '<title>'.$category_->name.'　-赫思医疗美容</title>';
		echo '<meta name="keywords" content="赫思,赫思医疗美容整形医院,赫思名品医疗,'.$category_->name.'">';
		echo '<meta name="description" content="'.$category_->description.'">';
	}elseif(is_single()){
		$keywords_=get_post_meta(get_the_ID(), "keywords", $single = true);
		$category = get_the_category();
		echo '<title>';the_title();echo '　-赫思医疗美容</title>';
		echo '<meta name="keywords" content="';
		if($keywords_)
			echo $keywords_.',';
		if(has_tag()){
			foreach(get_the_tags($post->Id) as $tag){
				echo $tag->name.',';
			}
		}
		echo $category[0]->cat_name.'">';
		echo '<meta name="description" content="'.get_the_excerpt().'">';
	}elseif(is_tag()){
		$tagName = single_tag_title('',false);
		$tag_ = get_term_by('name',$tagName,'post_tag');//获取tag对象
		echo '<title>'.single_tag_title('',false).' 　- 赫思医疗美容</title>';
		echo '<meta name="keywords" content="赫思,赫思医疗美容整形医院,赫思名品医疗,'.$tagName.'">';
		echo '<meta name="description" content="'.$tag_->description.'">';
	}else{
		if($GLOBALS['_SERVER']['REQUEST_URI']=="/contact.html"){
			echo '<title>联系赫思　-赫思医疗美容</title>';
			echo '<meta name="keywords" content="深圳赫思医疗美容整形医院,赫思医疗美容医院联系方式,赫思医疗美容医院联系电话,深圳赫思医疗美容医院地址,赫思医疗美容医院网址,联系我们,contactus,赫思名品,佛山赫思医院,惠州赫思医院,东莞赫思医院,珠海赫思医疗美容"/>';
		}elseif($GLOBALS['_SERVER']['REQUEST_URI']=="/about.html"){
			echo '<title>关于赫思　-赫思医疗美容</title>';
			echo '<meta name="keywords" content="赫思医疗美容医院简介,赫思医疗美容医院历史,关于赫思,深圳赫思医疗美容整形医院,赫思名品,佛山赫思医疗美容医院,惠州赫思医疗美容医院,东莞赫思医疗美容医院,珠海赫思医疗美容"/>';
		}else{
			echo '<title>';echo bloginfo('name');echo '</title>';
			echo '<meta name="keywords" content="赫思,深圳赫思医疗美容医院,整形,整形医院,美容,医美,隆胸,隆鼻,割双眼皮,私密,深圳最好的整形美容医院,深圳知名整形医院,hers,赫思名品医疗,东莞赫思,佛山赫思,珠海赫思,惠州赫思" />';
		}
		echo '<meta name="description" content="赫思医疗美容目前在深圳、东莞、佛山开设直营医院，是以高端医疗美容整形为基础的大湾区明星名模名媛打造基地。赫思汇聚了全国最顶级的美容医生，以高超的技术、优美的环境和热情的服务为基础，以最前沿的、高端的审美为追求，为求美者量身定制最符合自身的医疗美容服务" />';
	}
	?>

	<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
	<link rel="shortcut icon" href="favicon.ico">
	<?php wp_head(); ?>

	<!-- FOR IE9 below -->
	<!--[if lt IE 9]>
	<script src="/js/respond.min.js"></script>
	<![endif]-->

	</head>
	
	<body>
	<div id="fh5co-wrapper">
	<div id="fh5co-page">
	<header id="fh5co-header-section" class="sticky-banner">
		<div class="container">
			<div class="nav-header">
				<a href="#" class="js-fh5co-nav-toggle fh5co-nav-toggle dark"><i class="iconfont icon-case"></i></a>
				<h1 id="fh5co-logo"><a href="/"><i class="iconfont icon-hers"></i>赫思<span>医疗美容</span></a></h1>
				<!-- START #fh5co-menu-wrap -->
				<nav id="fh5co-menu-wrap" role="navigation">
					<ul class="sf-menu" id="fh5co-primary-menu">

						<li <?php if(is_home()){ echo 'class="active"'; }?>><a href="/">首页</a></li>
						<?php
						if(is_category()){
							$category=get_category($cat);//get_category和get_the_category是两个不同的函数
						?>
						<li <?php if(is_category('case')||$category->category_parent==get_cat_ID('真实案例')){ echo 'class="active"'; }?>>
							<a href="/category/case" class="fh5co-sub-ddown">真实案例<i class="iconfont icon-xiangxiajiantou"></i></a>
							<ul class="fh5co-sub-menu">
								<li <?php if(is_category('case')){ echo 'class="active"'; }?>><a href="/category/case">全部案例</a></li>
								<li <?php if(is_category('eye')){ echo 'class="active"'; }?>><a href="/category/case/eye">眼综合</a></li>
								<li <?php if(is_category('nose')){ echo 'class="active"'; }?>><a href="/category/case/nose">鼻综合</a></li>
								<li <?php if(is_category('breast')){ echo 'class="active"'; }?>><a href="/category/case/breast">胸综合</a></li>
								<li <?php if(is_category('micops')){ echo 'class="active"'; }?>><a href="/category/case/micops">微整形</a></li>
								<li <?php if(is_category('face')){ echo 'class="active"'; }?>><a href="/category/case/face">脸综合</a></li>
								<li <?php if(is_category('fanny')){ echo 'class="active"'; }?>><a href="/category/case/fanny">私密</a></li>
								<li <?php if(is_category('dentistry')){ echo 'class="active"'; }?>><a href="/category/case/dentistry">牙科</a></li>
								<li <?php if(is_category('plant')){ echo 'class="active"'; }?>><a href="/category/case/plant">植发</a></li>
								<li <?php if(is_category('liposuction')){ echo 'class="active"'; }?>><a href="/category/case/liposuction">吸脂塑形</a></li>
								<li <?php if(is_category('others')){ echo 'class="active"'; }?>><a href="/category/case/others">其他项目</a></li>
							</ul>
						</li>
						<li <?php if(is_category('news')){ echo 'class="active"'; }?>><a href="/category/news">赫思新闻</a></li>
						<li <?php if(is_category('coupon')){ echo 'class="active"'; }?>><a href="/category/coupon" style="color:red">优惠活动</a></li>
						<?php 
						}else{
						?>
						<li>
							<a href="/category/case" class="fh5co-sub-ddown">真实案例<i class="iconfont icon-xiangxiajiantou"></i></a>
							<ul class="fh5co-sub-menu">
								<li><a href="/category/case">全部案例</a></li>
								<li><a href="/category/case/eye">眼综合</a></li>
								<li><a href="/category/case/nose">鼻综合</a></li>
								<li><a href="/category/case/breast">胸综合</a></li>
								<li><a href="/category/case/micops">微整形</a></li>
								<li><a href="/category/case/face">脸综合</a></li>
								<li><a href="/category/case/fanny">私密</a></li>
								<li><a href="/category/case/dentistry">牙科</a></li>
								<li><a href="/category/case/plant">植发</a></li>
								<li><a href="/category/case/liposuction">吸脂塑形</a></li>
								<li><a href="/category/case/others">其他项目</a></li>
							</ul>
						</li>
						<li><a href="/category/news">赫思新闻</a></li>					
						<li><a href="/category/coupon" style="color:red">优惠活动</a></li>
						<?php
						}
						?>
						<li <?php if($GLOBALS['_SERVER']['REQUEST_URI']=="/about.html"){echo 'class="active"'; }?>><a href="/about.html">关于我们</a></li>
						<li <?php if($GLOBALS['_SERVER']['REQUEST_URI']=="/contact.html"){echo 'class="active"'; }?>><a href="/contact.html">联系赫思</a></li>
					</ul>
				</nav>
			</div>
		</div>
	</header>
	

		<!-- end:header-top -->